package com.woniuxy.empserver.mapper;

import com.woniuxy.empserver.entity.TEmp;
import com.woniuxy.empserver.vo.EmpVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface TEmpMapper extends Mapper<TEmp> {

    @Select("select * from t_emp")
    List<TEmp> selectAll();

    List<EmpVo> selectEmpByCons(@Param("ename") String ename, @Param("did") Integer deptId);
}